//
//  DocumentsCacheOperationOutput.h
//  Documents
//
//  Created by Alex Di Mango 
//  Copyright (c) 2012 Whardoo.com -  All rights reserved.
//

#define MAX_DIM_MIEIDOC 1000
#define MAX_DIM_CACHE 1900

#import <Foundation/Foundation.h>
#import "MyDocument.h"

@interface DocumentsCacheOperationOutput : NSObject

@property (nonatomic, assign) BOOL operationOK;
@property (nonatomic, assign) BOOL needsDownload;
@property (nonatomic, copy) NSString *operationMessage;

@property (nonatomic, copy) NSString *filePath;
@end

@interface DocumentsCache : NSObject
+(NSString*)localFilePathFromDoc:(id)document;
+(void)emptyCache;
+(float)docFolderFreeSpace:(NSString *)path forMaxDimension:(int)dim;
+(void)removeFromCache:(MyDocument *)document;
+(BOOL)docExists:(id)document;
+(void)documentsFolderCleaning;

@end
